
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-nv"></use>
                    </svg>
                    <div class="name">女</div>
                    <div class="fontclass">#icon-nv</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cet4"></use>
                    </svg>
                    <div class="name">CET-4</div>
                    <div class="fontclass">#icon-cet4</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shangbannv"></use>
                    </svg>
                    <div class="name">上班（女）</div>
                    <div class="fontclass">#icon-shangbannv</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-phone"></use>
                    </svg>
                    <div class="name">phone</div>
                    <div class="fontclass">#icon-phone</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiguan"></use>
                    </svg>
                    <div class="name">籍贯</div>
                    <div class="fontclass">#icon-jiguan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cet"></use>
                    </svg>
                    <div class="name">CET</div>
                    <div class="fontclass">#icon-cet</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-logo"></use>
                    </svg>
                    <div class="name">nodejs</div>
                    <div class="fontclass">#icon-logo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-phone1"></use>
                    </svg>
                    <div class="name">Phone</div>
                    <div class="fontclass">#icon-phone1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qq"></use>
                    </svg>
                    <div class="name">QQ</div>
                    <div class="fontclass">#icon-qq</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiangmu2"></use>
                    </svg>
                    <div class="name">项目2</div>
                    <div class="fontclass">#icon-xiangmu2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iconfontzhuye"></use>
                    </svg>
                    <div class="name">主页</div>
                    <div class="fontclass">#icon-iconfontzhuye</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wode"></use>
                    </svg>
                    <div class="name">我的</div>
                    <div class="fontclass">#icon-wode</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jquery"></use>
                    </svg>
                    <div class="name">jquery</div>
                    <div class="fontclass">#icon-jquery</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yuan3"></use>
                    </svg>
                    <div class="name">圆</div>
                    <div class="fontclass">#icon-yuan3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jq"></use>
                    </svg>
                    <div class="name">jq</div>
                    <div class="fontclass">#icon-jq</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gongzuoshangban"></use>
                    </svg>
                    <div class="name">工作上班</div>
                    <div class="fontclass">#icon-gongzuoshangban</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mingzu"></use>
                    </svg>
                    <div class="name">名族</div>
                    <div class="fontclass">#icon-mingzu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gril"></use>
                    </svg>
                    <div class="name">女</div>
                    <div class="fontclass">#icon-gril</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jineng"></use>
                    </svg>
                    <div class="name">技能</div>
                    <div class="fontclass">#icon-jineng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuanye"></use>
                    </svg>
                    <div class="name">专业</div>
                    <div class="fontclass">#icon-zhuanye</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-CSS"></use>
                    </svg>
                    <div class="name">CSS</div>
                    <div class="fontclass">#icon-CSS</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gongzuojingli"></use>
                    </svg>
                    <div class="name">工作经历</div>
                    <div class="fontclass">#icon-gongzuojingli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chusheng"></use>
                    </svg>
                    <div class="name">出生</div>
                    <div class="fontclass">#icon-chusheng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chusheng1"></use>
                    </svg>
                    <div class="name">出生</div>
                    <div class="fontclass">#icon-chusheng1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-project"></use>
                    </svg>
                    <div class="name">项目</div>
                    <div class="fontclass">#icon-project</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gongzuojingli1"></use>
                    </svg>
                    <div class="name">工作经历</div>
                    <div class="fontclass">#icon-gongzuojingli1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-nv1"></use>
                    </svg>
                    <div class="name">女</div>
                    <div class="fontclass">#icon-nv1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qq-oc"></use>
                    </svg>
                    <div class="name">qq-oc</div>
                    <div class="fontclass">#icon-qq-oc</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-angular-logo"></use>
                    </svg>
                    <div class="name">angular-logo</div>
                    <div class="fontclass">#icon-angular-logo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-closeyihuifu-"></use>
                    </svg>
                    <div class="name">address</div>
                    <div class="fontclass">#icon-closeyihuifu-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chushengrenkoujiance"></use>
                    </svg>
                    <div class="name">出生人口检测</div>
                    <div class="fontclass">#icon-chushengrenkoujiance</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiangmuji"></use>
                    </svg>
                    <div class="name">项目集</div>
                    <div class="fontclass">#icon-xiangmuji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-email"></use>
                    </svg>
                    <div class="name">email</div>
                    <div class="fontclass">#icon-email</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-h5-copy"></use>
                    </svg>
                    <div class="name">H5</div>
                    <div class="fontclass">#icon-h5-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qq1"></use>
                    </svg>
                    <div class="name">qq</div>
                    <div class="fontclass">#icon-qq1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xuexiao"></use>
                    </svg>
                    <div class="name">学校</div>
                    <div class="fontclass">#icon-xuexiao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-html"></use>
                    </svg>
                    <div class="name">html</div>
                    <div class="fontclass">#icon-html</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiaoyujingli"></use>
                    </svg>
                    <div class="name">教育经历</div>
                    <div class="fontclass">#icon-jiaoyujingli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-nv2"></use>
                    </svg>
                    <div class="name">女</div>
                    <div class="fontclass">#icon-nv2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yuan"></use>
                    </svg>
                    <div class="name">圆</div>
                    <div class="fontclass">#icon-yuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jingli"></use>
                    </svg>
                    <div class="name">经历</div>
                    <div class="fontclass">#icon-jingli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-react"></use>
                    </svg>
                    <div class="name">react</div>
                    <div class="fontclass">#icon-react</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mongodb"></use>
                    </svg>
                    <div class="name">mongodb</div>
                    <div class="fontclass">#icon-mongodb</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weixin"></use>
                    </svg>
                    <div class="name">微信</div>
                    <div class="fontclass">#icon-weixin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinengdashi"></use>
                    </svg>
                    <div class="name">技能大师</div>
                    <div class="fontclass">#icon-jinengdashi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mysql"></use>
                    </svg>
                    <div class="name">mysql</div>
                    <div class="fontclass">#icon-mysql</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fengexian"></use>
                    </svg>
                    <div class="name">分割线</div>
                    <div class="fontclass">#icon-fengexian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinengzhengshu"></use>
                    </svg>
                    <div class="name">技能证书</div>
                    <div class="fontclass">#icon-jinengzhengshu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ziliaoxiangqing-gerenziliao-chushengriqi"></use>
                    </svg>
                    <div class="name">资料详情-个人资料-出生日期</div>
                    <div class="fontclass">#icon-ziliaoxiangqing-gerenziliao-chushengriqi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiangmu-"></use>
                    </svg>
                    <div class="name">项目-2</div>
                    <div class="fontclass">#icon-xiangmu-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mongodb1"></use>
                    </svg>
                    <div class="name">mongodb</div>
                    <div class="fontclass">#icon-mongodb1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-Bootstrap"></use>
                    </svg>
                    <div class="name">Bootstrap</div>
                    <div class="fontclass">#icon-Bootstrap</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
